﻿/*
 * QWine Queue Machine (Special build for Immigration Office)
 * Copyright (C) 2010 Wish Enterprise Development Team

 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 * 
 * Contact Us:
 * E-Mail   : contact@wishenterprise.com
 * 
 * */

using System;
using Origami.Data.Mapping;

namespace QWEntity.Local
{
    /// <summary>
    /// Layanan
    /// </summary>
    [Table(Name = "layanan")]
    public class Layanan
    {
        private string _layananDescription;
        private string _layananID;

        /// <summary>
        /// Gets or sets the ID.
        /// </summary>
        /// <value>The ID.</value>
        [Id(Name = "LayananID")]
        public string LayananID
        {
            get { return _layananID; }
            set
            {
                if (string.IsNullOrEmpty(value))
                    throw new ArgumentNullException("value", "Layanan ID is null");
                _layananID = value;
            }
        }

        /// <summary>
        /// Gets or sets the layanan description.
        /// </summary>
        /// <value>The layanan description.</value>
        [Column(Name = "LayananDescription")]
        public string LayananDescription
        {
            get { return _layananDescription; }
            set
            {
                if (string.IsNullOrEmpty(value))
                    throw new ArgumentNullException("value", "Layanan Description is null");
                _layananDescription = value;
            }
        }

        /// <summary>
        /// Gets or sets a value indicating whether this instance is locked.
        /// </summary>
        /// <value><c>true</c> if this instance is locked; otherwise, <c>false</c>.</value>
        [Column(Name = "IsLocked")]
        public bool IsLocked { get; set; }

        /// <summary>
        /// Gets or sets the copies.
        /// </summary>
        /// <value>The copies.</value>
        [Column(Name = "Copies")]
        public int Copies { get; set; }
    }
}